var e = require("../../common/vendor.js"), t = require("../../api/ajax.js"), r = require("../../uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js"), require("../../config/config.js");

var u = {
    mixins: [ r.ZPMixin ],
    props: {
        id: {
            type: String
        }
    },
    setup: function(t) {
        var r = t.id, u = e.useStore();
        return {
            id: r,
            upInfo: function(e) {
                u.commit("showCar/upInfo", e);
            },
            showCar: u.state.showCar
        };
    },
    data: function() {
        return {
            keywords: "",
            dataList: [],
            loading: !0
        };
    },
    methods: {
        change: function(e) {
            var t = this;
            this.keywords = e, setTimeout(function() {
                t.$refs.paging.reload();
            }, 500);
        },
        queryList: function(e, r) {
            var u = this;
            t.doPostUrl("car.Series/index", {
                brand_id: this.id,
                keywords: this.keywords,
                page: e,
                limit: r
            }).then(function(e) {
                console.log("queryList", e.data.data), u.$refs.paging.complete(e.data.data);
            });
        },
        goSeries: function(t) {
            this.upInfo(t), e.index.navigateBack({
                delta: 2
            });
        }
    }
};

Array || (e.resolveComponent("uv-search") + e.resolveComponent("uv-image") + e.resolveComponent("uv-text") + e.resolveComponent("uv-icon") + e.resolveComponent("uv-list-item") + e.resolveComponent("uv-list") + e.resolveComponent("z-paging"))(), 
Math || (function() {
    return "../../uni_modules/uv-search/components/uv-search/uv-search.js";
} + function() {
    return "../../uni_modules/uv-image/components/uv-image/uv-image.js";
} + function() {
    return "../../uni_modules/uv-text/components/uv-text/uv-text.js";
} + function() {
    return "../../uni_modules/uv-icon/components/uv-icon/uv-icon.js";
} + function() {
    return "../../uni_modules/uv-list/components/uv-list-item/uv-list-item.js";
} + function() {
    return "../../uni_modules/uv-list/components/uv-list/uv-list.js";
} + function() {
    return "../../uni_modules/z-paging/components/z-paging/z-paging.js";
})();

var i = e._export_sfc(u, [ [ "render", function(t, r, u, i, s, n) {
    var o = this;
    return {
        a: e.o(n.change),
        b: e.o(n.change),
        c: e.o(function(e) {
            return s.keywords = e;
        }),
        d: e.p({
            "bg-color": "#ffffff",
            modelValue: s.keywords
        }),
        e: e.f(s.dataList, function(t, r, u) {
            return {
                a: "054619c3-4-" + u + ",054619c3-3-" + u,
                b: e.p({
                    src: o.siteUrl + t.titlepic + "/?w=100&h=75",
                    bgColor: "#f5f5f5",
                    width: "100px",
                    height: "75px"
                }),
                c: "054619c3-5-" + u + ",054619c3-3-" + u,
                d: e.p({
                    size: "17",
                    bold: !0,
                    margin: "20rpx",
                    text: t.title
                }),
                e: "054619c3-6-" + u + ",054619c3-3-" + u,
                f: r,
                g: e.o(function(e) {
                    return n.goSeries(t);
                }, r),
                h: "054619c3-3-" + u + ",054619c3-2"
            };
        }),
        f: e.p({
            name: "arrow-right",
            color: "#2979ff",
            size: "28"
        }),
        g: e.p({
            border: !0,
            clickable: !0,
            customStyle: {
                backgroundColor: "#ffffff"
            }
        }),
        h: e.sr("paging", "054619c3-0"),
        i: e.o(n.queryList),
        j: e.o(function(e) {
            return s.dataList = e;
        }),
        k: e.p({
            modelValue: s.dataList
        })
    };
} ] ]);

wx.createPage(i);